﻿using System;
using System.Windows.Data;
using System.Windows.Media;

using Finance.Entites;

namespace Finance.UI.Utils
{
    public class SetConfigActionAsUriConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value is string)
            {
                return string.Format("/AccountSettingPage.xaml?set=payoutClassification&value={0}", value as string);
            }
            throw new ArgumentException("Invalid data type, type of string is required.");
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
